home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ASME's Mechanical Engine…ing Toolkit 1997 December
/
ASME's Mechanical Engineering Toolkit 1997 December.iso
/
main_frm
/
lharcunx.zoo
/
mktemp.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-03-29
|
412b
|
29 lines
/* MKTEMP.C using TMP environment variable */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <io.h>
void Mktemp(char *file)
{
char fname[32], *tmp;
tmp = getenv("TMP");
if ( tmp != NULL )
{
strcpy(fname, file);
strcpy(file, tmp);
if ( file[strlen(file) - 1] != '\\' )
strcat(file, "\\");
strcat(file, fname);
}
mktemp(file);
}
/* End of MKTEMP.C */